package com.fen.demo006;

import com.fen.demo005.Dependency;

/**
 * @author : lrf
 * @description : Spring5 3.2.3 构造函数依赖注入
 * @tip :
 * @date : 2019/3/21
 */
public class ConstruatorInjection {

    private Dependency dependency;

    public ConstruatorInjection(Dependency dependency) {
        this.dependency = dependency;
    }

    @Override
    public String toString() {
        return dependency.toString();
    }
}
